// getters模块是将各个模块中需要基于state派生的出的getter整合到了一个对象中, 方便在组件中读取
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.staffPhoto
}
export default getters
